package zouran.shounewsspringboot.service.serviceImp;

import org.springframework.stereotype.Service;
import zouran.shounewsspringboot.mapper.IdentityMapper;
import zouran.shounewsspringboot.service.IdentityService;

import java.util.List;

/**
 * @author zouran
 * createDate：2023/5/31  19:35
 */
@Service
public class IdentityServiceImp implements IdentityService {
    private final IdentityMapper identityMapper;
    public IdentityServiceImp(IdentityMapper identityMapper) {
        this.identityMapper = identityMapper;
    }

    @Override
    public List<String> getAllAuthorByType(String name) {
        return identityMapper.getAllAuthorByType(name);
    }

    @Override
    public Integer judgeAuthorExist(String author) {
        return identityMapper.judgeAuthorExist(author);
    }
}
